package com.xpz.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xpz.reggie.dto.DishDto;
import com.xpz.reggie.entity.Dish;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * TODO
 *
 * @author wxc
 * @date 2023/2/24 18:37
 */
@EnableTransactionManagement
public interface DishService extends IService<Dish> {
    //新增菜品，同时加入口味
    public void saveWithFlavor(DishDto dishDto);

    //根据id来查询菜品和口味信息
    public DishDto getByIdWithFlavor(Long id);
    //更新菜品信息，和口味信息
    public void updateWithFlavor(DishDto dishDto);
}
